package com.app.newiptv.bean.allchannels;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Shinelon on 2017/9/15.
 */

public class Program implements Serializable {
    private int id;
    private String name;
    private int sort;
    private String reviewUrl;
    private List<String> sources;
    private List<Epg> epg;

    @Override
    public String toString() {
        return "Program{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sort=" + sort +
                ", review='" + reviewUrl + '\'' +
                ", sources=" + sources +
                ", epg=" + epg +
                '}';
    }

    public Program()
    {

    }

    public Program(MainChanel.Lives lives)
    {
        id=lives.getId();
        name=lives.getName();
        sort=lives.getSort();
        reviewUrl=lives.getReviewUrl();
        sources=lives.getSources();
        epg=lives.getEpg();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getReview() {
        return reviewUrl;
    }

    public void setReview(String review) {
        this.reviewUrl = review;
    }

    public List<String> getSources() {
        return sources;
    }

    public void setSources(List<String> sources) {
        this.sources = sources;
    }

    public List<Epg> getEpg() {
        return epg;
    }

    public void setEpg(List<Epg> epg) {
        this.epg = epg;
    }

    public static class Sources implements Serializable {
        private int id;
        private String name;
        private int sort;
        private String address;


        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        @Override
        public String toString() {
            return "Sources{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", sort=" + sort +
                    ", address='" + address + '\'' +
                    '}';
        }
    }

    public class Epg implements Serializable {
        private String title;
        private String starttime;
        private String endtime;

        @Override
        public String toString() {
            return "Epg{" +
                    "title='" + title + '\'' +
                    ", starttime='" + starttime + '\'' +
                    ", endtime='" + endtime + '\'' +
                    '}';
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getStarttime() {
            return starttime;
        }

        public void setStarttime(String starttime) {
            this.starttime = starttime;
        }

        public String getEndtime() {
            return endtime;
        }

        public void setEndtime(String endtime) {
            this.endtime = endtime;
        }
    }

}
